package com.qf.entity;

import com.qf.utils.MyUtils;

public class Card1 {

    private String id;
    private String name;
    private String phone;
    private String password;
    private String type;
    private Integer uid;
    private Double balance;

    @Override
    public String toString() {
        return "Card1{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", password='" + password + '\'' +
                ", type='" + type + '\'' +
                ", uid=" + uid +
                ", balance=" + balance +
                '}';
    }

    public Double getBalance() {
        return balance;
    }

    public void setBalance(Double balance) {
        this.balance = balance;
    }

    public Card1(String id, String name, String phone, String password, String type, Integer uid, Double balance) {
        this.id = MyUtils.getRandomNickname(10);
        this.name = name;
        this.phone = phone;
        this.password = password;
        this.type = type;
        this.uid = uid;
        this.balance = 1000.0;
    }
    public Card1(String id, String name, String phone, String password, Integer uid) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.password = password;
        this.uid = uid;
    }
    public Card1(String id, String phone, String password, Integer uid) {
        this.id = id;
        this.phone = phone;
        this.password = password;
        this.uid = uid;
    }
    public Card1() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }


    public Card1(String id, String name, String phone, String password, String type, Integer uid) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.password = password;
        this.type = type;
        this.uid = uid;
    }

}
